export default {
  //  获取该用户所在公司对应角色的菜单
  setMenuData(state, data) {
    state.menu = data
  },
  //  获取所有公司的
  setCompanyData(state, data) {
    state.company = data
  },
  //  设置用户信息
  setUserInfo(state, data) {
    state.userinfo = data
  },
  //  设置公司权限列表
  setCompanyRoles(state, data) {
    state.companyroles = data
  },
  //  设置全局ProjectID
  setProjectID(state, data) {
    state.project_id = data
  },
  clearAllData(state) {
    state.company = []
    state.menu = []
    state.userinfo = {}
    state.companyroles = []
    state.project_id = ''
  },
  // 修改当前选中的项目 id
  setSelectProId(state, id) {
    state.selectProId = id
  },
  setProjectList(state,data){
    
  },
  setInstrumentList(state, instrumentList) {
    state.instrumentList = instrumentList
  }
}
